import requests


def get_wms_token():
    captchaimage=requests.get(url="http://60.204.225.104/api/captchaimage")
    res_uuid=captchaimage.json()
    uuid=res_uuid["uuid"]
    url="http://60.204.225.104/api/login"
    response=requests.post(url=url,json={"username":"admin",
                                         "password":"23643",
                                         "code":"6",
                                         "uuid":uuid})

    res=response.json()
    return 'Bearer'+res['token']












